package exam.service.impl;


import exam.dao.AccountDao;
import exam.dao.BookDao;
import exam.dao.EquipmentDao;
import exam.dao.UserDao;
import exam.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Autowired
    private BookDao bookDao;
//
//    @Autowired
//    private AccountDao accountDao;
//
//    @Autowired
//    private EquipmentDao equipmentDao;

    @Override
    public void save() {
        System.out.println("user service running...");
        userDao.save();
        bookDao.save();
//        accountDao.save();
//        equipmentDao.save();
    }
}
